<template>
  <el-button @click="changeLang()">{{ $t('language.set_language') }}</el-button>
</template>

<script setup lang="ts">
import { useI18n } from 'vue-i18n'
const { locale } = useI18n()
const changeLang = () => {
  locale.value = locale.value === 'zh-US' ? 'en-US' : 'zh-US'
}
</script>

<style lang="" scoped></style>
